package sicnu.cs.ich.api.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author 黎琦
 * @date 2021-11-25 22:20
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_activity_timeline")
public class ActivityTimeline implements Serializable {

  @TableId(type = IdType.AUTO)
  private Integer id;
  private Integer activityId;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @NotNull(message = "活动time不能为空")
  private Date time;
  @NotNull(message = "活动内容planContent不能为空")
  private String planContent;

}
